Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Key derivation function</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Key_derivation_function"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Key_derivation_function rootpage-Key_derivation_function skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Key derivation function</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1305433154">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style>
<p class="mw-empty-elt">
</p>

<p>In <a href="Cryptography" title="Cryptography">cryptography</a>, a <b>key derivation function</b> (<b>KDF</b>) is a cryptographic algorithm that derives one or more <a href="Key_(cryptography)" title="Key (cryptography)">secret keys</a> from a secret value such as a master key, a <a href="Password" title="Password">password</a>, or a <a href="Passphrase" title="Passphrase">passphrase</a> using a <a href="Pseudorandom_function" class="mw-redirect" title="Pseudorandom function">pseudorandom function</a> (which typically uses a <a href="Cryptographic_hash_function" title="Cryptographic hash function">cryptographic hash function</a> or <a href="Block_cipher" title="Block cipher">block cipher</a>).<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-rfc8018_2-0" class="reference"><a href="#cite_note-rfc8018-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> KDFs can be used to stretch keys into longer keys or to obtain keys of a required format, such as converting a group element that is the result of a <a href="Diffie%E2%80%93Hellman_key_exchange" title="Diffie–Hellman key exchange">Diffie–Hellman key exchange</a> into a symmetric key for use with <a href="Advanced_Encryption_Standard" title="Advanced Encryption Standard">AES</a>. <a href="HMAC" title="HMAC">Keyed cryptographic hash functions</a> are popular examples of pseudorandom functions used for key derivation.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>The first deliberately slow (key stretching) password-based key derivation function was called "<a href="Crypt_(C)" title="Crypt (C)">crypt</a>" (or "crypt(3)" after its <a href="Manual_page_(Unix)" class="mw-redirect" title="Manual page (Unix)">man page</a>), and was invented by <a href="Robert_Morris_(cryptographer)" title="Robert Morris (cryptographer)">Robert Morris</a> in 1978. It would encrypt a constant (zero), using the first 8 characters of the user's password as the key, by performing 25 iterations of a modified <a href="Data_Encryption_Standard" title="Data Encryption Standard">DES</a> encryption algorithm (in which a 12-bit number read from the real-time computer clock is used to perturb the calculations). The resulting 64-bit number is encoded as 11 printable characters and then stored in the <a href="Unix" title="Unix">Unix</a> password file.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> While it was a great advance at the time, increases in processor speeds since the <a href="PDP-11" title="PDP-11">PDP-11</a> era have made <a href="Brute-force_attack" title="Brute-force attack">brute-force attacks</a> against crypt <a href="Feasible_computability" class="mw-redirect" title="Feasible computability">feasible</a>, and advances in storage have rendered the 12-bit <a href="Salt_(cryptography)" title="Salt (cryptography)">salt</a> inadequate. The crypt function's design also limits the user password to 8 characters, which limits the keyspace and makes strong <a href="Passphrase" title="Passphrase">passphrases</a> impossible.
</p><p>Although high throughput is a desirable property in general-purpose hash functions, the opposite is true in password security applications in which defending against brute-force cracking is a primary concern. The growing use of <a href="Massively_parallel" title="Massively parallel">massively-parallel</a> hardware such as <a href="Graphics_processing_unit" title="Graphics processing unit">GPUs</a>, <a href="Field-programmable_gate_array" title="Field-programmable gate array">FPGAs</a>, and even <a href="Application-specific_integrated_circuit" title="Application-specific integrated circuit">ASICs</a> for brute-force cracking has made the selection of a suitable algorithms even more critical because the good algorithm should enforce a certain amount of computational cost not only on CPUs, but also resist the cost/performance advantages of modern massively-parallel platforms for such tasks. Various algorithms have been designed specifically for this purpose, including <a href="Bcrypt" title="Bcrypt">bcrypt</a>, <a href="Scrypt" title="Scrypt">scrypt</a> and, more recently, <a href="Lyra2" title="Lyra2">Lyra2</a> and <a href="Argon2" title="Argon2">Argon2</a> (the latter being the winner of the <a href="Password_Hashing_Competition" title="Password Hashing Competition">Password Hashing Competition</a>). The large-scale <a href="Ashley_Madison_data_breach" title="Ashley Madison data breach">Ashley Madison data breach</a> in which roughly 36 million passwords hashes were stolen by attackers illustrated the importance of algorithm selection in securing passwords. Although bcrypt was employed to protect the hashes (making large scale brute-force cracking expensive and time-consuming), a significant portion of the accounts in the compromised data also contained a password hash based on the fast, general-purpose, and <a href="MD5#Security" title="MD5">insecure</a> <a href="MD5" title="MD5">MD5</a> algorithm, which made it possible for over 11 million of the passwords to be cracked in a matter of weeks.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p><p>In June 2017, The U.S. National Institute of Standards and Technology (NIST) issued a new revision of their digital authentication guidelines, NIST SP 800-63B-3,<sup id="cite_ref-sp800-63B_7-0" class="reference"><a href="#cite_note-sp800-63B-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 5.1.1.2">: 5.1.1.2 </span></sup> stating that: "Verifiers SHALL store memorized secrets [i.e. passwords] in a form that is resistant to offline attacks. Memorized secrets SHALL be salted and hashed using a suitable one-way key derivation function. Key derivation functions take a password, a salt, and a cost factor as inputs then generate a password hash. Their purpose is to make each password guessing trial by an attacker who has obtained a password hash file expensive and therefore the cost of a guessing attack high or prohibitive."
</p><p>Modern password-based key derivation functions, such as <a href="PBKDF2" title="PBKDF2">PBKDF2</a>,<sup id="cite_ref-rfc8018_2-1" class="reference"><a href="#cite_note-rfc8018-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> are based on a recognized cryptographic hash, such as <a href="SHA-2" title="SHA-2">SHA-2</a>, use more salt (at least 64 bits and chosen randomly) and a high iteration count. NIST recommends a minimum iteration count of 10,000.<sup id="cite_ref-sp800-63B_7-1" class="reference"><a href="#cite_note-sp800-63B-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 5.1.1.2">: 5.1.1.2 </span></sup>
"For especially critical keys, or for very powerful systems or systems where user-perceived performance is not critical, an iteration count of 10,000,000 may be appropriate.”
<sup id="cite_ref-sp800-132_8-0" class="reference"><a href="#cite_note-sp800-132-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 5.2">: 5.2 </span></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Key_derivation">Key derivation</h2></div>
<p>The original use for a KDF is key derivation, the generation of keys from secret passwords or passphrases. Variations on this theme include:
</p>
<ul><li>In conjunction with non-secret parameters to derive one or more keys from a common secret value (which is sometimes also referred to as "<b>key diversification</b>"). Such use may prevent an attacker who obtains a derived key from learning useful information about either the input secret value or any of the other derived keys. A KDF may also be used to ensure that derived keys have other desirable properties, such as avoiding "weak keys" in some specific encryption systems.</li>
<li>As components of multiparty <a href="Key-agreement_protocol" title="Key-agreement protocol">key-agreement protocols</a>. Examples of such key derivation functions include KDF1, defined in <a href="IEEE_P1363" title="IEEE P1363">IEEE Std 1363-2000</a>, and similar functions in ANSI X9.42.</li>
<li>To derive keys from secret passwords or passphrases (a <i>password-based KDF</i>).</li>
<li>To derive keys of different length from the ones provided. KDFs designed for this purpose include <a href="HKDF" title="HKDF">HKDF</a> and SSKDF. These take an 'info' bit string as an additional optional 'info' parameter, which may be crucial to bind the derived key material to application- and context-specific information.<sup id="cite_ref-info_9-0" class="reference"><a href="#cite_note-info-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup></li>
<li><a href="Key_stretching" title="Key stretching">Key stretching</a> and key strengthening.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Key_stretching_and_key_strengthening">Key stretching and key strengthening</h3></div>
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Key_stretching" title="Key stretching">Key stretching</a></div>
<p>Key derivation functions are also used in applications to derive keys from secret passwords or passphrases, which typically do not have the desired properties to be used directly as cryptographic keys. In such applications, it is generally recommended that the key derivation function be made deliberately slow so as to frustrate <a href="Brute-force_attack" title="Brute-force attack">brute-force attack</a> or <a href="Dictionary_attack" title="Dictionary attack">dictionary attack</a> on the password or passphrase input value.
</p><p>Such use may be expressed as <span class="texhtml">DK = KDF(key, salt, iterations)</span>, where <span class="texhtml">DK</span> is the derived key, <span class="texhtml">KDF</span> is the key derivation <a href="Subroutine" class="mw-redirect" title="Subroutine">function</a>, <span class="texhtml">key</span> is the original key or password, <span class="texhtml">salt</span> is a random number which acts as <a href="Salt_(cryptography)" title="Salt (cryptography)">cryptographic salt</a>, and <span class="texhtml">iterations</span> refers to the number of <a href="Iteration" title="Iteration">iterations</a> of a sub-function. The derived key is used instead of the original key or password as the key to the system. The values of the salt and the number of iterations (if it is not fixed) are stored with the hashed password or sent as <a href="Plaintext" title="Plaintext">cleartext</a> (unencrypted) with an encrypted message.<sup id="cite_ref-salthash_10-0" class="reference"><a href="#cite_note-salthash-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p><p>The difficulty of a brute force attack is increased with the number of iterations. A practical limit on the iteration count is the unwillingness of users to tolerate a perceptible delay in logging into a computer or seeing a decrypted message. The use of <a href="Salt_(cryptography)" title="Salt (cryptography)">salt</a> prevents the attackers from precomputing a dictionary of derived keys.<sup id="cite_ref-salthash_10-1" class="reference"><a href="#cite_note-salthash-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p><p>An alternative approach, called <b>key strengthening</b>, extends the key with a random salt, but then (unlike in key stretching) securely deletes the salt.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> This forces both the attacker and legitimate users to perform a brute-force search for the salt value.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> Although the paper that introduced key stretching<sup id="cite_ref-low-entropy_13-0" class="reference"><a href="#cite_note-low-entropy-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup> referred to this earlier technique and intentionally chose a different name, the term "key strengthening" is now often (arguably incorrectly) used to refer to key stretching.
</p>
<div class="mw-heading mw-heading2"><h2 id="Password_hashing">Password hashing</h2></div>
<p>Despite their original use for key derivation, KDFs are possibly better known for their use in <b>password hashing</b> (<a href="Cryptographic_hash_function#Password_verification" title="Cryptographic hash function">password verification by hash comparison</a>), as used by the <a href="Passwd" title="Passwd">passwd</a> file or <a href="Shadow_password" class="mw-redirect" title="Shadow password">shadow password</a> file. Password hash functions should be relatively expensive to calculate in case of brute-force attacks, and the <a href="Key_stretching" title="Key stretching">key stretching</a> of KDFs happen to provide this characteristic. The non-secret parameters are called "<a href="Salt_(cryptography)" title="Salt (cryptography)">salt</a>" in this context.
</p><p>In 2013 a <a href="Password_Hashing_Competition" title="Password Hashing Competition">Password Hashing Competition</a> was announced to choose a new, standard algorithm for password hashing. On 20 July 2015 the competition ended and <a href="Argon2" title="Argon2">Argon2</a> was announced as the final winner. Four other algorithms received special recognition: Catena, <a href="Lyra2" title="Lyra2">Lyra2</a>, Makwa and <a href="Yescrypt" title="Yescrypt">yescrypt</a>.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup>
</p><p>As of May 2023, the <a href="OWASP" title="OWASP">Open Worldwide Application Security Project</a> (OWASP) recommends the following KDFs for password hashing, listed in order of priority:<sup id="cite_ref-owasp_15-0" class="reference"><a href="#cite_note-owasp-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup>
</p>
<ol><li><a href="Argon2" title="Argon2">Argon2id</a></li>
<li><a href="Scrypt" title="Scrypt">scrypt</a> if Argon2id is unavailable</li>
<li><a href="Bcrypt" title="Bcrypt">bcrypt</a> for legacy systems</li>
<li><a href="PBKDF2" title="PBKDF2">PBKDF2</a> if <a href="FIPS-140" class="mw-redirect" title="FIPS-140">FIPS-140</a> compliance is required</li></ol>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFBezzi,_Michele2011" class="citation book cs1">Bezzi, Michele; et&nbsp;al. (2011). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=vYxzh3C6OPUC&amp;pg=PA185">"Data privacy"</a>. In Camenisch, Jan; et&nbsp;al. (eds.). <i>Privacy and Identity Management for Life</i>. Springer. pp.&nbsp;<span class="nowrap">185–</span>186. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>9783642203176</bdi>.</cite></span>
</li>
<li id="cite_note-rfc8018-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-rfc8018_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-rfc8018_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFB._KaliskiA._Rusch2017" class="citation cs1">B. Kaliski; A. Rusch (January 2017). K. Moriarty (ed.). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc8018"><i>PKCS #5: Password-Based Cryptography Specification Version 2.1</i></a>. <a href="Internet_Engineering_Task_Force" title="Internet Engineering Task Force">Internet Engineering Task Force</a>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC8018">10.17487/RFC8018</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/2070-1721">2070-1721</a>. <a href="Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc8018">8018</a>.</cite> <i>Informational.</i> Obsoletes RFC&nbsp;<a rel="nofollow" class="external text" href="https://www.rfc-editor.org/rfc/rfc2898">2898</a>. Updated by RFC&nbsp;<a rel="nofollow" class="external text" href="https://www.rfc-editor.org/rfc/rfc9579">9579</a>.
</span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite id="CITEREFChen,_Lily2009" class="citation web cs1">Chen, Lily (October 2009). <a rel="nofollow" class="external text" href="https://csrc.nist.gov/publications/detail/sp/800-108/final">"NIST SP 800-108: Recommendation for Key Derivation Using Pseudorandom Functions"</a>. NIST.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFZdziarski,_Jonathan2012" class="citation book cs1">Zdziarski, Jonathan (2012). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=2D50GNA1ULsC&amp;pg=PA252"><i>Hacking and Securing IOS Applications: Stealing Data, Hijacking Software, and How to Prevent It</i></a>. O'Reilly Media. pp.&nbsp;<span class="nowrap">252–</span>253. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>9781449318741</bdi>.</cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite id="CITEREFMorris,_RobertThompson,_Ken1978" class="citation web cs1">Morris, Robert; Thompson, Ken (3 April 1978). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20030322053727/http://cm.bell-labs.com/cm/cs/who/dmr/passwd.ps">"Password Security: A Case History"</a>. <i>Bell Laboratories</i>. Archived from <a rel="nofollow" class="external text" href="http://cm.bell-labs.com/cm/cs/who/dmr/passwd.ps">the original</a> on 22 March 2003<span class="reference-accessdate">. Retrieved <span class="nowrap">9 May</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite id="CITEREFGoodin2015" class="citation web cs1">Goodin, Dan (10 September 2015). <a rel="nofollow" class="external text" href="https://arstechnica.com/security/2015/09/once-seen-as-bulletproof-11-million-ashley-madison-passwords-already-cracked/">"Once seen as bulletproof, 11 million+ Ashley Madison passwords already cracked"</a>. <i><a href="Ars_Technica" title="Ars Technica">Ars Technica</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">10 September</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-sp800-63B-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-sp800-63B_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sp800-63B_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFGrassi_Paul_A.2017" class="citation book cs1">Grassi Paul A. (June 2017). <i>SP 800-63B-3 – Digital Identity Guidelines, Authentication and Lifecycle Management</i>. NIST. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.6028%2FNIST.SP.800-63b">10.6028/NIST.SP.800-63b</a>.</cite></span>
</li>
<li id="cite_note-sp800-132-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-sp800-132_8-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMeltem_Sönmez_TuranElaine_BarkerWilliam_BurrLily_Chen2010" class="citation book cs1">Meltem Sönmez Turan; Elaine Barker; William Burr; Lily Chen (December 2010). <a rel="nofollow" class="external text" href="http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf"><i>SP 800-132 – Recommendation for Password-Based Key Derivation, Part 1: Storage Applications</i></a> <span class="cs1-format">(PDF)</span>. NIST. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.6028%2FNIST.SP.800-132">10.6028/NIST.SP.800-132</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:56801929">56801929</a>.</cite></span>
</li>
<li id="cite_note-info-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-info_9-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKrawczykEronen2010" class="citation journal cs1">Krawczyk, Hugo; Eronen, Pasi (May 2010). <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc5869#section-3.2">"The 'info' Input to HKDF"</a>. <i>datatracker.ietf.org</i>.</cite> RFC 5869 (2010)</span>
</li>
<li id="cite_note-salthash-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-salthash_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-salthash_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://crackstation.net/hashing-security.htm">"Salted Password Hashing – Doing it Right"</a>. <i>CrackStation.net</i><span class="reference-accessdate">. Retrieved <span class="nowrap">29 January</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text">Abadi, Martın, T. Mark A. Lomas, and Roger Needham. "Strengthening passwords." Digital System Research Center, Tech. Rep 33 (1997): 1997.</span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text">U. Manber, "A Simple Scheme to Make Passwords Based on One-Way Functions Much Harder to Crack," Computers &amp; Security, v.15, n.2, 1996, pp.171–176.</span>
</li>
<li id="cite_note-low-entropy-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-low-entropy_13-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://www.schneier.com/paper-low-entropy.html">Secure Applications of Low-Entropy Keys</a>, <a href="John_Kelsey_(cryptanalyst)" title="John Kelsey (cryptanalyst)">J. Kelsey</a>, <a href="Bruce_Schneier" title="Bruce Schneier">B. Schneier</a>, C. Hall, and <a href="David_A._Wagner" title="David A. Wagner">D. Wagner</a> (1997)</span>
</li>
<li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://password-hashing.net/">"Password Hashing Competition"</a></span>
</li>
<li id="cite_note-owasp-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-owasp_15-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html">"Password Storage Cheat Sheet"</a>. <i>OWASP Cheat Sheet Series</i>. <a href="OWASP" title="OWASP">OWASP</a><span class="reference-accessdate">. Retrieved <span class="nowrap">17 May</span> 2023</span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2></div>
<ul><li><cite id="CITEREFPercival2009" class="citation web cs1"><a href="Colin_Percival" title="Colin Percival">Percival, Colin</a> (May 2009). <a rel="nofollow" class="external text" href="http://www.tarsnap.com/scrypt/scrypt.pdf">"Stronger Key Derivation via Sequential Memory-Hard Functions"</a> <span class="cs1-format">(PDF)</span>. <i>BSDCan'09 Presentation</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2009</span>.</cite></li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20150228035021/http://di-mgt.com.au/cryptoKDFs.html">Key Derivation Functions</a></li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}


/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-label="Navbox0" style="padding:3px"><table class="nowraplinks hlist navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks mw-collapsible mw-collapsed navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Cryptography149" style="font-size:114%;margin:0 4em"><a href="Cryptography" title="Cryptography">Cryptography</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">General</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="History_of_cryptography" title="History of cryptography">History of cryptography</a></li>
<li><a href="Outline_of_cryptography" title="Outline of cryptography">Outline of cryptography</a></li>
<li><a href="Classical_cipher" title="Classical cipher">Classical cipher</a></li>
<li><a href="Cryptographic_protocol" title="Cryptographic protocol">Cryptographic protocol</a>
<ul><li><a href="Authentication_protocol" title="Authentication protocol">Authentication protocol</a></li></ul></li>
<li><a href="Cryptographic_primitive" title="Cryptographic primitive">Cryptographic primitive</a></li>
<li><a href="Cryptanalysis" title="Cryptanalysis">Cryptanalysis</a></li>
<li><a href="Cryptocurrency" title="Cryptocurrency">Cryptocurrency</a></li>
<li><a href="Cryptosystem" title="Cryptosystem">Cryptosystem</a></li>
<li><a href="Cryptographic_nonce" title="Cryptographic nonce">Cryptographic nonce</a></li>
<li><a href="Cryptovirology" title="Cryptovirology">Cryptovirology</a></li>
<li><a href="Hash_function" title="Hash function">Hash function</a>
<ul><li><a href="Cryptographic_hash_function" title="Cryptographic hash function">Cryptographic hash function</a></li>

<li><a href="Secure_Hash_Algorithms" title="Secure Hash Algorithms">Secure Hash Algorithms</a></li></ul></li>
<li><a href="Digital_signature" title="Digital signature">Digital signature</a></li>
<li><a href="Kleptography" title="Kleptography">Kleptography</a></li>
<li><a href="Key_(cryptography)" title="Key (cryptography)">Key (cryptography)</a></li>
<li><a href="Key_exchange" title="Key exchange">Key exchange</a></li>
<li><a href="Key_generator" title="Key generator">Key generator</a></li>
<li><a href="Key_schedule" title="Key schedule">Key schedule</a></li>
<li><a href="Key_stretching" title="Key stretching">Key stretching</a></li>
<li><a href="Keygen" title="Keygen">Keygen</a></li>
<li>Machines</li>
<li><a href="Cryptojacking_malware" class="mw-redirect" title="Cryptojacking malware">Cryptojacking malware</a></li>
<li><a href="Ransomware" title="Ransomware">Ransomware</a></li>
<li><a href="Random_number_generation" title="Random number generation">Random number generation</a>
<ul><li><a href="Cryptographically_secure_pseudorandom_number_generator" title="Cryptographically secure pseudorandom number generator">Cryptographically secure pseudorandom number generator</a> (CSPRNG)</li></ul></li>
<li><a href="Pseudorandom_noise" title="Pseudorandom noise">Pseudorandom noise</a> (PRN)</li>
<li><a href="Secure_channel" title="Secure channel">Secure channel</a></li>
<li><a href="Insecure_channel" class="mw-redirect" title="Insecure channel">Insecure channel</a></li>
<li><a href="Subliminal_channel" title="Subliminal channel">Subliminal channel</a></li>
<li><a href="Encryption" title="Encryption">Encryption</a></li>
<li><a href="Decryption" class="mw-redirect" title="Decryption">Decryption</a></li>
<li><a href="End-to-end_encryption" title="End-to-end encryption">End-to-end encryption</a></li>
<li><a href="Harvest_now%2C_decrypt_later" title="Harvest now, decrypt later">Harvest now, decrypt later</a></li>
<li><a href="Information-theoretic_security" title="Information-theoretic security">Information-theoretic security</a></li>
<li><a href="Plaintext" title="Plaintext">Plaintext</a></li>
<li><a href="Codetext" class="mw-redirect" title="Codetext">Codetext</a></li>
<li><a href="Ciphertext" title="Ciphertext">Ciphertext</a></li>
<li><a href="Shared_secret" title="Shared secret">Shared secret</a></li>
<li><a href="Trapdoor_function" title="Trapdoor function">Trapdoor function</a></li>
<li><a href="Trusted_timestamping" title="Trusted timestamping">Trusted timestamping</a></li>
<li><a href="Key-based_routing" title="Key-based routing">Key-based routing</a></li>
<li><a href="Onion_routing" title="Onion routing">Onion routing</a></li>
<li><a href="Garlic_routing" title="Garlic routing">Garlic routing</a></li>
<li><a href="Kademlia" title="Kademlia">Kademlia</a></li>
<li><a href="Mix_network" title="Mix network">Mix network</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Mathematics</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Cryptographic_hash_function" title="Cryptographic hash function">Cryptographic hash function</a></li>
<li><a href="Block_cipher" title="Block cipher">Block cipher</a></li>
<li><a href="Stream_cipher" title="Stream cipher">Stream cipher</a></li>
<li><a href="Symmetric-key_algorithm" title="Symmetric-key algorithm">Symmetric-key algorithm</a></li>
<li><a href="Authenticated_encryption" title="Authenticated encryption">Authenticated encryption</a></li>
<li><a href="Public-key_cryptography" title="Public-key cryptography">Public-key cryptography</a></li>
<li><a href="Quantum_key_distribution" title="Quantum key distribution">Quantum key distribution</a></li>
<li><a href="Quantum_cryptography" title="Quantum cryptography">Quantum cryptography</a></li>
<li><a href="Post-quantum_cryptography" title="Post-quantum cryptography">Post-quantum cryptography</a></li>
<li><a href="Message_authentication_code" title="Message authentication code">Message authentication code</a></li>
<li><a href="Cryptographically_secure_pseudorandom_number_generator" title="Cryptographically secure pseudorandom number generator">Random numbers</a></li>
<li><a href="Steganography" title="Steganography">Steganography</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> Category</li></ul>
</div></td></tr></tbody></table><div></div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-08-01" href="https://en.wikipedia.org/wiki/?title=Key_derivation_function&amp;oldid=1303661585">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>